import request from '@/utils/request'

// 查询通话日志列表
export function listCallLog(query) {
  return request({
    url: '/system/callLog/list',
    method: 'get',
    params: query
  })
}

// 查询通话日志详细
export function getCallLog(id) {
  return request({
    url: '/system/callLog/' + id,
    method: 'get'
  })
}

// 新增通话日志
export function addCallLog(data) {
  return request({
    url: '/system/callLog',
    method: 'post',
    data: data
  })
}

// 修改通话日志
export function updateCallLog(data) {
  return request({
    url: '/system/callLog',
    method: 'put',
    data: data
  })
}

// 删除通话日志
export function delCallLog(id) {
  return request({
    url: '/system/callLog/' + id,
    method: 'delete'
  })
}
